package com.shiguiwu.springmybatis.app.service;

import com.shiguiwu.springmybatis.app.entity.WorkEnergizeDetail;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

/**
 * (WorkEnergizeDetail)表服务接口
 *
 * @author makejava
 * @since 2022-11-24 21:41:50
 */
public interface WorkEnergizeDetailService {

    /**
     * 通过ID查询单条数据
     *
     * @param macAddress 主键
     * @return 实例对象
     */
    WorkEnergizeDetail queryById(String macAddress);

    /**
     * 分页查询
     *
     * @param workEnergizeDetail 筛选条件
     * @param pageRequest        分页对象
     * @return 查询结果
     */
    Page<WorkEnergizeDetail> queryByPage(WorkEnergizeDetail workEnergizeDetail, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param workEnergizeDetail 实例对象
     * @return 实例对象
     */
    WorkEnergizeDetail insert(WorkEnergizeDetail workEnergizeDetail);

    /**
     * 修改数据
     *
     * @param workEnergizeDetail 实例对象
     * @return 实例对象
     */
    WorkEnergizeDetail update(WorkEnergizeDetail workEnergizeDetail);

    /**
     * 通过主键删除数据
     *
     * @param macAddress 主键
     * @return 是否成功
     */
    boolean deleteById(String macAddress);

    void testOne();

}
